/**
 * Logger class.
 */
package pits.util;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintStream;

public class Logger {

	private FileOutputStream fout;

	public Logger() {
		try {
			fout = new FileOutputStream(Constants.PATH_LOG, true);
			// String path="C:\\\\Users\\ltd\\Desktop\\Workspace1\\PITSLog.txt";
			// fout = new FileOutputStream(path, true);
		} catch (IOException e) {
			System.out.println("Log file error");
		}
	}

	public void write(String message) {
		new PrintStream(fout).println(message);
	}

	public void writeln(String message) {
		new PrintStream(fout).println("\n" + message + "\n");
	}
}
